package com.zlh.rm.Exception.Dao;

import com.zlh.rm.Exception.ErrorCode;

public enum SystemCode implements ErrorCode {
    /**
     * database error.
     */
    DATABASE_ERROR(1),
    /**
     * save error.
     */
    SAVE_ERROR(2),
    /**
     * delete error.
     */
    DELETE_ERROR(3),
	/**
	 * delete all error.
	 */
	DELETE_ALL_ERROR(4),
	/**
	 * execute sql error.
	 */
	EXECUTE_SQL_ERROR(5),
	/**
	 * find by sql error.
	 */
	FINDE_BY_SQL_ERROR(6),
	/**
	 * get total count error.
	 */
	GET_TOTAL_COUNT_ERROR(7),
	/**
	 * get total count not from keyword.
	 */
	GET_TOTAL_COUNT_NOT_FROM_KEYWORD(8),
	/**
	 * update error.
	 */
	UPDATE_ERROR(9);
    /**
     * code number.
     */
    private final int number;

    /**
     * @param number
     *            code number
     */
    private SystemCode(int number) {
        this.number = number;
    }

    public int getNumber() {
        return number;
    }
}
